﻿import Router from 'vue-router';
import user_index from "../user_index.vue";
import Advanture from '../../app_ad/Adventure_index.vue';
import ad_list from '../../app_ad/ad_list.vue';
import scroll_full from "../../app_ad/scroll_full.vue";
import Advanture_visit from "../../app_ad/Adventure_index_visit.vue";
//const ad_list = r => require.ensure([], () => r(require('../../Adventure/ad_list.vue')));
//const Advanture = r => require.ensure([], () => r(require('../../Adventure/Adventure_index.vue')));
//const scroll_full = r => require.ensure([], () => r(require('../../Adventure/scroll_full.vue')));
//const Advanture_visit = r => require.ensure([], () => r(require('../../Adventure/Adventure_index_visit.vue')));
export default new Router({
  routes: [
    {
      path: '/',
      redirect:"/user_index",
      meta: {
        //requireAuth: true,  // 添加该字段，表示进入这个路由是需要登录的
      },
    },
    {
        path: "/ad_list",
        component:ad_list
    },
    {
        path: "/user_index",
        component: user_index
    },
    {
        path:"/Advanture",
        component:Advanture
    },
    {
        path: "/Adventure_visit",
        component: Advanture_visit
    },
    {
        path: "/scroll_full",
        component: scroll_full
    }
    ],
     
})
